Optimal. Leaf size=333 \[ -\frac {(e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \sqrt {d+e x} \sqrt {f+g x}}{64 e^2 g^4}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {(e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e} \sqrt {f+g x}}\right )}{64 e^{5/2} g^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 333, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {965, 81, 52, 65,
223, 212} \begin {gather*} -\frac {\sqrt {d+e x} \sqrt {f+g x} (e f-d g) \left (8 e g (6 a e g-b (d g+5 e f))+c \left (3 d^2 g^2+10 d e f g+35 e^2 f^2\right )\right )}{64 e^2 g^4}+\frac {(d+e x)^{3/2} \sqrt {f+g x} \left (8 e g (6 a e g-b (d g+5 e f))+c \left (3 d^2 g^2+10 d e f g+35 e^2 f^2\right )\right )}{96 e^2 g^3}+\frac {(e f-d g)^2 \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e} \sqrt {f+g x}}\right ) \left (8 e g (6 a e g-b (d g+5 e f))+c \left (3 d^2 g^2+10 d e f g+35 e^2 f^2\right )\right )}{64 e^{5/2} g^{9/2}}-\frac {(d+e x)^{5/2} \sqrt {f+g x} (-8 b e g+9 c d g+7 c e f)}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 212
Rule 223
Rule 965
Rubi steps
\begin {align*} \int \frac {(d+e x)^{3/2} \left (a+b x+c x^2\right )}{\sqrt {f+g x}} \, dx &=\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {\int \frac {(d+e x)^{3/2} \left (\frac {1}{2} \left (8 a e^2 g-c d (7 e f+d g)\right )-\frac {1}{2} e (7 c e f+9 c d g-8 b e g) x\right )}{\sqrt {f+g x}} \, dx}{4 e^2 g}\\ &=-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \int \frac {(d+e x)^{3/2}}{\sqrt {f+g x}} \, dx}{48 e^2 g^2}\\ &=\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}-\frac {\left ((e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right )\right ) \int \frac {\sqrt {d+e x}}{\sqrt {f+g x}} \, dx}{64 e^2 g^3}\\ &=-\frac {(e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \sqrt {d+e x} \sqrt {f+g x}}{64 e^2 g^4}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {\left ((e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right )\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {f+g x}} \, dx}{128 e^2 g^4}\\ &=-\frac {(e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \sqrt {d+e x} \sqrt {f+g x}}{64 e^2 g^4}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {\left ((e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {f-\frac {d g}{e}+\frac {g x^2}{e}}} \, dx,x,\sqrt {d+e x}\right )}{64 e^3 g^4}\\ &=-\frac {(e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \sqrt {d+e x} \sqrt {f+g x}}{64 e^2 g^4}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {\left ((e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {g x^2}{e}} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{64 e^3 g^4}\\ &=-\frac {(e f-d g) \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \sqrt {d+e x} \sqrt {f+g x}}{64 e^2 g^4}+\frac {\left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) (d+e x)^{3/2} \sqrt {f+g x}}{96 e^2 g^3}-\frac {(7 c e f+9 c d g-8 b e g) (d+e x)^{5/2} \sqrt {f+g x}}{24 e^2 g^2}+\frac {c (d+e x)^{7/2} \sqrt {f+g x}}{4 e^2 g}+\frac {(e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {d+e x}}{\sqrt {e} \sqrt {f+g x}}\right )}{64 e^{5/2} g^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.82, size = 289, normalized size = 0.87 \begin {gather*} \frac {\sqrt {d+e x} \sqrt {f+g x} \left (c \left (-9 d^3 g^3+3 d^2 e g^2 (-5 f+2 g x)+d e^2 g \left (145 f^2-92 f g x+72 g^2 x^2\right )+e^3 \left (-105 f^3+70 f^2 g x-56 f g^2 x^2+48 g^3 x^3\right )\right )+8 e g \left (6 a e g (-3 e f+5 d g+2 e g x)+b \left (3 d^2 g^2+2 d e g (-11 f+7 g x)+e^2 \left (15 f^2-10 f g x+8 g^2 x^2\right )\right )\right )\right )}{192 e^2 g^4}+\frac {(e f-d g)^2 \left (c \left (35 e^2 f^2+10 d e f g+3 d^2 g^2\right )+8 e g (6 a e g-b (5 e f+d g))\right ) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {f+g x}}{\sqrt {g} \sqrt {d+e x}}\right )}{64 e^{5/2} g^{9/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1206\) vs.
\(2(295)=590\).
time = 0.07, size = 1207, normalized size = 3.62
method | result | size |
default | \(\text {Expression too large to display}\) | \(1207\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.56, size = 844, normalized size = 2.53 \begin {gather*} \left [\frac {{\left (3 \, {\left (3 \, c d^{4} g^{4} + {\left (35 \, c f^{4} - 40 \, b f^{3} g + 48 \, a f^{2} g^{2}\right )} e^{4} - 12 \, {\left (5 \, c d f^{3} g - 6 \, b d f^{2} g^{2} + 8 \, a d f g^{3}\right )} e^{3} + 6 \, {\left (3 \, c d^{2} f^{2} g^{2} - 4 \, b d^{2} f g^{3} + 8 \, a d^{2} g^{4}\right )} e^{2} + 4 \, {\left (c d^{3} f g^{3} - 2 \, b d^{3} g^{4}\right )} e\right )} \sqrt {g} e^{\frac {1}{2}} \log \left (d^{2} g^{2} + 4 \, {\left (d g + {\left (2 \, g x + f\right )} e\right )} \sqrt {g x + f} \sqrt {x e + d} \sqrt {g} e^{\frac {1}{2}} + {\left (8 \, g^{2} x^{2} + 8 \, f g x + f^{2}\right )} e^{2} + 2 \, {\left (4 \, d g^{2} x + 3 \, d f g\right )} e\right ) - 4 \, {\left (9 \, c d^{3} g^{4} e - {\left (48 \, c g^{4} x^{3} - 105 \, c f^{3} g + 120 \, b f^{2} g^{2} - 144 \, a f g^{3} - 8 \, {\left (7 \, c f g^{3} - 8 \, b g^{4}\right )} x^{2} + 2 \, {\left (35 \, c f^{2} g^{2} - 40 \, b f g^{3} + 48 \, a g^{4}\right )} x\right )} e^{4} - {\left (72 \, c d g^{4} x^{2} + 145 \, c d f^{2} g^{2} - 176 \, b d f g^{3} + 240 \, a d g^{4} - 4 \, {\left (23 \, c d f g^{3} - 28 \, b d g^{4}\right )} x\right )} e^{3} - 3 \, {\left (2 \, c d^{2} g^{4} x - 5 \, c d^{2} f g^{3} + 8 \, b d^{2} g^{4}\right )} e^{2}\right )} \sqrt {g x + f} \sqrt {x e + d}\right )} e^{\left (-3\right )}}{768 \, g^{5}}, -\frac {{\left (3 \, {\left (3 \, c d^{4} g^{4} + {\left (35 \, c f^{4} - 40 \, b f^{3} g + 48 \, a f^{2} g^{2}\right )} e^{4} - 12 \, {\left (5 \, c d f^{3} g - 6 \, b d f^{2} g^{2} + 8 \, a d f g^{3}\right )} e^{3} + 6 \, {\left (3 \, c d^{2} f^{2} g^{2} - 4 \, b d^{2} f g^{3} + 8 \, a d^{2} g^{4}\right )} e^{2} + 4 \, {\left (c d^{3} f g^{3} - 2 \, b d^{3} g^{4}\right )} e\right )} \sqrt {-g e} \arctan \left (\frac {{\left (d g + {\left (2 \, g x + f\right )} e\right )} \sqrt {g x + f} \sqrt {-g e} \sqrt {x e + d}}{2 \, {\left ({\left (g^{2} x^{2} + f g x\right )} e^{2} + {\left (d g^{2} x + d f g\right )} e\right )}}\right ) + 2 \, {\left (9 \, c d^{3} g^{4} e - {\left (48 \, c g^{4} x^{3} - 105 \, c f^{3} g + 120 \, b f^{2} g^{2} - 144 \, a f g^{3} - 8 \, {\left (7 \, c f g^{3} - 8 \, b g^{4}\right )} x^{2} + 2 \, {\left (35 \, c f^{2} g^{2} - 40 \, b f g^{3} + 48 \, a g^{4}\right )} x\right )} e^{4} - {\left (72 \, c d g^{4} x^{2} + 145 \, c d f^{2} g^{2} - 176 \, b d f g^{3} + 240 \, a d g^{4} - 4 \, {\left (23 \, c d f g^{3} - 28 \, b d g^{4}\right )} x\right )} e^{3} - 3 \, {\left (2 \, c d^{2} g^{4} x - 5 \, c d^{2} f g^{3} + 8 \, b d^{2} g^{4}\right )} e^{2}\right )} \sqrt {g x + f} \sqrt {x e + d}\right )} e^{\left (-3\right )}}{384 \, g^{5}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1048 vs.
\(2 (307) = 614\).
time = 4.67, size = 1048, normalized size = 3.15 \begin {gather*} -\frac {\frac {192 \, {\left (\frac {{\left (d g^{2} - f g e\right )} e^{\left (-\frac {1}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{\sqrt {g}} - \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \sqrt {g x + f}\right )} a d {\left | g \right |}}{g^{2}} - \frac {8 \, {\left (\sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \sqrt {g x + f} {\left (2 \, {\left (g x + f\right )} {\left (\frac {4 \, {\left (g x + f\right )}}{g^{2}} + \frac {{\left (d g^{6} e^{3} - 13 \, f g^{5} e^{4}\right )} e^{\left (-4\right )}}{g^{7}}\right )} - \frac {3 \, {\left (d^{2} g^{7} e^{2} + 2 \, d f g^{6} e^{3} - 11 \, f^{2} g^{5} e^{4}\right )} e^{\left (-4\right )}}{g^{7}}\right )} - \frac {3 \, {\left (d^{3} g^{3} + d^{2} f g^{2} e + 3 \, d f^{2} g e^{2} - 5 \, f^{3} e^{3}\right )} e^{\left (-\frac {5}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{g^{\frac {3}{2}}}\right )} c d {\left | g \right |}}{g^{2}} - \frac {8 \, {\left (\sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \sqrt {g x + f} {\left (2 \, {\left (g x + f\right )} {\left (\frac {4 \, {\left (g x + f\right )}}{g^{2}} + \frac {{\left (d g^{6} e^{3} - 13 \, f g^{5} e^{4}\right )} e^{\left (-4\right )}}{g^{7}}\right )} - \frac {3 \, {\left (d^{2} g^{7} e^{2} + 2 \, d f g^{6} e^{3} - 11 \, f^{2} g^{5} e^{4}\right )} e^{\left (-4\right )}}{g^{7}}\right )} - \frac {3 \, {\left (d^{3} g^{3} + d^{2} f g^{2} e + 3 \, d f^{2} g e^{2} - 5 \, f^{3} e^{3}\right )} e^{\left (-\frac {5}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{g^{\frac {3}{2}}}\right )} b {\left | g \right |} e}{g^{2}} - \frac {{\left (\sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} {\left (2 \, {\left (g x + f\right )} {\left (4 \, {\left (g x + f\right )} {\left (\frac {6 \, {\left (g x + f\right )}}{g^{3}} + \frac {{\left (d g^{12} e^{5} - 25 \, f g^{11} e^{6}\right )} e^{\left (-6\right )}}{g^{14}}\right )} - \frac {{\left (5 \, d^{2} g^{13} e^{4} + 14 \, d f g^{12} e^{5} - 163 \, f^{2} g^{11} e^{6}\right )} e^{\left (-6\right )}}{g^{14}}\right )} + \frac {3 \, {\left (5 \, d^{3} g^{14} e^{3} + 9 \, d^{2} f g^{13} e^{4} + 15 \, d f^{2} g^{12} e^{5} - 93 \, f^{3} g^{11} e^{6}\right )} e^{\left (-6\right )}}{g^{14}}\right )} \sqrt {g x + f} + \frac {3 \, {\left (5 \, d^{4} g^{4} + 4 \, d^{3} f g^{3} e + 6 \, d^{2} f^{2} g^{2} e^{2} + 20 \, d f^{3} g e^{3} - 35 \, f^{4} e^{4}\right )} e^{\left (-\frac {7}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{g^{\frac {5}{2}}}\right )} c {\left | g \right |} e}{g^{2}} - \frac {48 \, {\left (\frac {{\left (d^{2} g^{3} + 2 \, d f g^{2} e - 3 \, f^{2} g e^{2}\right )} e^{\left (-\frac {3}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{\sqrt {g}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} {\left (2 \, g x + {\left (d g e - 5 \, f e^{2}\right )} e^{\left (-2\right )} + 2 \, f\right )} \sqrt {g x + f}\right )} b d {\left | g \right |}}{g^{3}} - \frac {48 \, {\left (\frac {{\left (d^{2} g^{3} + 2 \, d f g^{2} e - 3 \, f^{2} g e^{2}\right )} e^{\left (-\frac {3}{2}\right )} \log \left ({\left | -\sqrt {g x + f} \sqrt {g} e^{\frac {1}{2}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} \right |}\right )}{\sqrt {g}} + \sqrt {d g^{2} + {\left (g x + f\right )} g e - f g e} {\left (2 \, g x + {\left (d g e - 5 \, f e^{2}\right )} e^{\left (-2\right )} + 2 \, f\right )} \sqrt {g x + f}\right )} a {\left | g \right |} e}{g^{3}}}{192 \, g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^{3/2}\,\left (c\,x^2+b\,x+a\right )}{\sqrt {f+g\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________